function email_checkAllAction(){
	var btns=[{value:" 确 定 ",onclick:"popwin.close();",focus:true}];
	var eu = trim(E("username").value);
	if(eu==""){
		popwin.showDialog(2,"操作提示","请填写用户名。", btns, 280, 130);
		return;
	}
	var ev = trim(E("email").value);
	if(!isEmail(ev)){
		popwin.showDialog(2,"操作提示","电子邮箱格式不正确。", btns, 280, 130);
		return;
	}
	var sv = trim(E("securitycode").value);
	if(sv==""){
		popwin.showDialog(2,"操作提示","请填写验证码。", btns, 280, 130);
		return;
	}
	popwin.loading();
	ajaxPost("mailform","ajaxpublic.php?action="+action,email_checkAllAction_callback);
}

function email_checkAllAction_callback(data){
	var btns=[{value:" 确 定 ",onclick:"popwin.close();reloadVerify('securitycodeimg')",focus:true}];
	popwin.loaded();
	if(data=="y"){
		popwin.showDialog(1,"操作成功","您的请求已经提交。系统将会发送一封激活邮件到您的注册邮箱，请注意查收。", btns, 280, 130);
	}else{
		popwin.showDialog(0,"操作失败","操作失败:<br />"+data,btns,340, 130);
	}
}
